package org.wutopia.examples.dubbomtls.consumer;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wutopia.examples.dubbomtls.api.DubboGetNameService;

@RestController
public class HelloController {

    @DubboReference
    private DubboGetNameService dubboGetNameService;

    @GetMapping("/hello")
    public String get() {
        return dubboGetNameService.getName();
    }
}
